﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp1
{
    class Account
    {
        public int balance;
        public void at()
        {
            this.balance = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("余额为" + balance);
        }
        public Account(int balance)
        {
            this.balance = balance;
        }
        public void c()
        {
            this.balance += Convert.ToInt32(Console.ReadLine());//存钱
        }
        public void q()
        {
            this.balance -= Convert.ToInt32(Console.ReadLine());//取钱
        }
        public void chak()
        {
            Console.WriteLine(balance);//查看余额
        }
    }
}
